import request from "./request";

// 获取一级分类
export function getFirstCategorys() {
  return request({
    url: "/api/course/category/getFirstCategorys",
  });
}

// 获取一级分类下的课程标签
export function tagsList(info) {
  return request({
    url: "/api/course/tags/list",
    method: "post",
    data: info,
  });
}

// 查询课程
export function searchCourse(data) {
  return request({
    url: "/api/course/search",
    method: "post",
    data,
  });
}

// 轮播图
export function getSliders() {
  return request({
    url: "/api/slider/getSliders",
  });
}

//查询新上好课
export function mostNewCourse( data ){
	return request({
		url:'/api/course/mostNew',
		method:'post',
		data
	})
}

// 获取网站配置
export function setting() {
  return request({
    url: "/api/setting/get",
  });
}